package com.sam.core;

/**
 * 常量定义.
 * 
 * @author Sam
 */
public class Constants {

	/** Session Key  */
	//session中当前用户
	public static final String USER_IN_SESSION = "EMAN_USER";
	//session中国际化对象
	public static final String I18N_IN_SESSION = "I18N_IN_SESSION";
	
	/** 系统常量 */
	//每页记录条数默认值
	public static final int SYSTEM_CONFIG_PAGESIZE = 15;
	// The Constant COOKIE_USERNAME_KEY
	public static final String COOKIE_USERNAME_KEY = "EMAN_REMEMBER_ME_COOKIE_USERNAME";
	// The Constant COOKIE_PASSWORD_KEY
	public static final String COOKIE_PASSWORD_KEY = "EMAN_REMEMBER_ME_COOKIE_PASSWORD";
	// The Constant COOKIE_LANGUAGE_KEY
	public static final String COOKIE_LANGUAGE_KEY = "EMAN_REMEMBER_ME_COOKIE_LANGUAGE";
	// The Constant COOKIE_VALIDITY_SECONDS
	public static final int COOKIE_VALIDITY_SECONDS = 2592000; // 30days
	// The Constant SESSION_TIME_OUT
	public static final String SESSION_TIME_OUT = "SESSION_TIME_OUT";
	
	/** 格式化 */
	//date format
	public static final String DATE_FORMAT ="YYYY-MM-dd"; 
	//date time format
	public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
}
